package com.lczyfz.istep.common.utils.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * Created by 锋情 on 2016-11-22.
 */
public class TestJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("Hello World ! - " + jobExecutionContext.getJobDetail().getKey() + " " + new Date());
//        try {
//            Thread.sleep(10000L);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }finally {
//            System.out.println("TestJob over ! -"+ jobExecutionContext.getJobDetail().getKey() + new Date());
//
//        }

    }
}
